/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.HashMap;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import type.VendorProductPriceType;

/**
 *
 * @author wei
 */
//this is not used --thanh
@Entity(name="VendorProductPrice")
public class VendorProductPriceEntity extends DataObjectEntity implements Serializable {
    @ManyToOne
    private VendorEntity vendor;
    @ManyToOne
    private RawMaterialEntity rawMaterial;
    private double unitPrice;
    //quote from supplier
   // private HashMap<RawMaterialEntity,Double> vdc;
    private VendorProductPriceType vppType;

    public VendorProductPriceType getVpptype() {
        return vppType;
    }

    public void setVpptype(VendorProductPriceType vpptype) {
        this.vppType = vpptype;
    }
 
    public VendorProductPriceEntity() {
        super();
    }

 

    public RawMaterialEntity getRawMaterial() {
        return rawMaterial;
    }

    public void setRawMaterial(RawMaterialEntity rawMaterial) {
        this.rawMaterial = rawMaterial;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public VendorEntity getVendor() {
        return vendor;
    }

    public void setVendor(VendorEntity vendor) {
        this.vendor = vendor;
    }

    @Override
    public String childToString() {
        return "VendorProductPriceEntity{" + "vendor=" + vendor + ", rawMaterial=" + rawMaterial + ", unitPrice=" + unitPrice + ", vppType=" + vppType + '}';
    }

    
}
